const fp = require('lodash/fp');
const {Maybe, Container} = require('./support');
let safeProp = fp.curry(function(x, o){
    return Maybe.of(o[x]);
});
let user = {
    id:2,
    name:'Albert'
};
let ex3 = (user) => {
    return safeProp('name')(user).map(fp.first)._value
};
//test
console.log(ex3(user));